
@basecolor:#0bb569;
@basecolor-dark:#1a8e5a;
@line-color:#e1e1e1;
//线性渐变
.-linear-y(@start-color, @end-color, @start-percent: 0%, @end-percent: 100%){
  //background-color: @start-color;
  background-image: -webkit-gradient(linear, @start-percent top, @end-percent bottom, from(@start-color), to(@end-color)); // Safari 4+, Chrome 2+
  background-image: -webkit-linear-gradient(top, color-stop(@start-color @start-percent), color-stop(@end-color @end-percent)); // Safari 5.1+, Chrome 10+
  background-image: -moz-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // FF 3.6+
  background-image:  linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10
  background-repeat: no-repeat;
}
.-imgblock(){
  display: block;
  width: 100%;
}
.-text-height(@h){
  height: @h; line-height: @h;
}

.-font-height(@h){
  line-height: @h;
  font-size: @h;
}

.-text-middle(){
  &:after{
      content: ''; display: inline-block; width: 0; height: 100%; vertical-align: middle; overflow: hidden;
  }
}

// 等宽字体
.-font-monospace(){
  font-family: Monaco,Menlo,Consolas,"Courier New",monospace;
}
.-font-serif(){
  font-family: Georgia,"Times New Roman",Times,SimSun,FontAwesome,serif;
}

.-appearance(){
  -webkit-appearance: none;
  //-webkit-user-select: none;
  //-moz-user-select: none;
  //-ms-user-select: none;
  //user-select: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  text-transform: none;
  overflow: visible;
}

.-clearfix(){
  *zoom: 1;
  &:before,
  &:after {
      display: table;
      content: "";
      // Fixes Opera/contenteditable bug:
      // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
      line-height: 0;
  }
  &:after {
      clear: both;
  }
}

.-text-ellipsis(){
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.-text-line(@num,@height){
  display: -webkit-box;    
-webkit-box-orient: vertical;    
-webkit-line-clamp: @num;    
overflow: hidden;
max-height: @num*@height;
line-height: @height;
}